const App = getApp();
Page({
  data: {
    navH:210,
    titleTop:0,
    windowWidth:0,
    px2rpx:0

  },
  onLoad: function (options) {
    wx.getSystemInfo({
      success: res => {
        //导航高度
        this.setData({
          titleTop: res.statusBarHeight,
          windowWidth = res.windowWidth,
          px2rpx = 750 / windowWidth
        })
      }, fail(err) {
        console.log(err);
      }
    })
    
    wx.setNavigationBarTitle({
        title: '个人中心',
    })
    wx.setNavigationBarColor({
        frontColor: '#ffffff',
        backgroundColor: '#F2CA26',
        animation: {
            duration: 400,
            timingFunc: 'easeIn'
        }
    });
  },
})
